<?php

namespace backend\models\system;

use Yii;
use backend\models\system\SysConfig;

/**
 * ContactForm is the model behind the contact form.
 */
class TopnavForm extends SysConfig
{
    public $nav_name;
    public $nav_url;
    public $nav_status;
    /**
     * @inheritdoc 验证规则
     */
    public function rules()
    {
        return [
            [['nav_name','nav_url','nav_status'], 'required'],
            //[['config_type'],'integer'],
        ];
    }

    public function attributeLabels()
    {
        return [
            'nav_name' => '名称',
            'nav_url' => '链接地址',
            'nav_status' => '状态',
            'config_id'=>'',
            'config_key'=> "英文描述",
            'config_type'=>'配置类型',
        ];
    }
}